package demo.data;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.Random;

import com.svms.service.vo.MovementVO;

public class MovementData {

	public List<MovementVO> getAllMovementInfo() {

		Random randomGenerator = new Random();
		List<MovementVO> movementDataList = new ArrayList<MovementVO>();
		VehicleData vehicleData = new VehicleData();
		for (int i = 0; i < 22; i++) {
			MovementVO movementVO = new MovementVO();
			movementVO.setVehicleVO(vehicleData.getAllVehicleInfo().get(0));
			movementVO.setDistanceTraveled("120");
			movementVO.setStartDate(new Date());
			movementVO.setEndDate(new Date());
			movementVO.setStartPlace(String.valueOf(randomGenerator
					.nextInt(1000))
					+ "chennai"
					+ String.valueOf(randomGenerator.nextInt(1000)));
			movementVO
					.setEndPlace(String.valueOf(randomGenerator.nextInt(1000))
							+ "Kerala"
							+ String.valueOf(randomGenerator.nextInt(1000)));
			movementVO.setStuffingPlace("China");
			//System.out.println(movementVO);
			movementDataList.add(movementVO);
		}

		return movementDataList;
	}

}
